package string.classwork;

public class IntegerDemo {
    public static void main(String[] args) {


        Integer i1=new Integer(5);
        Integer i2=new Integer(5);
        System.out.println(i1==i2);
        System.out.println(i1.equals(i2));

        Integer i3= Integer.valueOf(5);
        Integer i4=Integer.valueOf(5);
        System.out.println(i4==i3);
        System.out.println(i3.equals(i4));

        int i5=i4.intValue();
        System.out.println(i5);
        System.out.println(i5==i4);
        System.out.println(i4.equals(i5));

        Integer i=5;
        System.out.println(i4.equals(i));
        int j=i;

        Integer max=Integer.MAX_VALUE;
        Integer min=Integer.MIN_VALUE;
        System.out.println("int的最大值为:"+max+"int的最大值为:"+min);

        Double max1=Double.MAX_VALUE;
        Double min1=Double.MIN_VALUE;
        System.out.println("double的最大值为:"+max1+"double的最大值为:"+min1);


        String s1="45";
        int age=Integer.parseInt(s1);


        String s2="1.23456";
        double d=Double.parseDouble(s2);

    }
}
